package com.unknownman.block.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 转账记录日志表
 * </p>
 *
 * @author xhy
 * @since 2021-10-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TContractLogs对象", description="转账记录日志表")
public class TContractLogs implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "contract_log_id", type = IdType.AUTO)
    private Long contractLogId;

    @ApiModelProperty(value = "合约配合id")
    private Long contractConfigId;

    @ApiModelProperty(value = "事件所在合约地址")
    private String contractAddress;

    @ApiModelProperty(value = "日志所在交易hash")
    private String transHash;

    @ApiModelProperty(value = "日志序号（相对区块）")
    private Long indexForBlock;

    @ApiModelProperty(value = "原始交易发起方")
    private String transFrom;

    @ApiModelProperty(value = "原始交易调用的合约")
    private String transTo;

    @ApiModelProperty(value = "类型，暂时不知道何用")
    private String type;

    @ApiModelProperty(value = "topic3")
    private String fourthTopic;

    @ApiModelProperty(value = "topic1")
    private String secondTopic;

    @ApiModelProperty(value = "topic0，代表日志名字")
    private String firstTopic;

    @ApiModelProperty(value = "topic2")
    private String thirdTopic;

    @ApiModelProperty(value = "日志的常规数据(16进制)")
    private String logData;

    @ApiModelProperty(value = "处理状态(10未处理 20已处理)")
    private Integer status;

    @ApiModelProperty(value = "区块号")
    private Long blockNumber;

    @ApiModelProperty(value = "所在区块时间戳")
    private Date blockTimestamp;

    private String createBy;

    private Date createDate;

    private Date updateDate;

    private String methodId;

    private String rpcAddress;



}
